<!-- admin dicts index -->
<?php $this->render('common/header'); ?>
	<div>
		<div class="center marg-bot-5">
			<a style="cursor: pointer;" onclick="javascript:window.open('index.php?cont=adminusr&amp;act=addnew','','width=800,height=600,resizable=1,scrollbars=1','');"><img src="<?php echo Config::$imgDir . '/icoplus.gif' ?>" alt="add user" title="add new user" border="0" />&nbsp;Add new user</a>
		</div>
		<table border="0" class="bordered-table">
			<tr>
				<th>User id</th>
				<th>User login</th>
				<th>Access</th>
				<th>Registration date</th>
				<th>Last login date</th>
				<th>Actions</th>
			</tr>
			<?php foreach($users as $user): ?>
				<tr align="center">
					<td><?php echo $user->id; ?></td>
					<td><?php echo $user->login; ?></td>
					<td><?php echo $user->access; ?></td>
					<td><?php echo date("d M Y [H:i:s]", strtotime($user->regDate)); ?></td>
					<td><?php echo $user->lastLogin; ?></td>
					<td><a href=""><img src="<?php echo Config::$imgDir . '/edit.png'; ?>" alt="edit user" border="0" /></a> | <a href=""><img src="<?php echo Config::$imgDir . '/delete.png'; ?>" alt="delete user" border="0" /></a></td>
				</tr>
			<?php endforeach; ?>
		</table>

	</div>
<?php $this->render('common/footer')?>